﻿using System;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public class GetContactsCommand : WindowsLiveCommand
    {
        /// <summary>
        /// 
        /// </summary>
        public override string GraphApiPath
        {
            get
            {
                if (String.IsNullOrEmpty(this.UserID))
                    return "me/contacts";
                else
                    return this.UserID + "/contacts";
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public String UserID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public GetContactsCommand()
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userID"></param>
        public GetContactsCommand(String userID)
        {
            this.UserID = userID;
        }
    }
}
